package io.renren.modules.merchant.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import io.renren.modules.dishes.entity.MerchantEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MerchantDao extends BaseMapper<MerchantEntity> {


    /**
     * 查询所有店铺id
     * @return
     */
    @Select("select merchant_id from wfu_merchant ")
    List<String> getAllMerchantID();

    /**
     * 获取店铺信息
     * @param merchantId
     * @return
     */
    @Select("select * from wfu_merchant where merchant_id = #{merchantId}")
    MerchantEntity getMerchantMessage(String merchantId);
}
